package deyi.entity;/*
 * Welcome to use the TableGo Tools.
 * 
 * http://vipbooks.iteye.com
 * http://blog.csdn.net/vipbooks
 * http://www.cnblogs.com/vipbooks
 * 
 * Author:bianj
 * Email:edinsker@163.com
 * Version:5.0.0
 */

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ANNOUNCEMENT
 * 
 * @author bianj
 * @version 1.0.0 2018-01-30
 */
@Entity
@Table(name = "announcement")
public class AnnouncementEntity {
    /** 版本号 */
    private static final long serialVersionUID = 4777190921314254462L;

    /** 编号 */
    @Id
    @Column(name = "ID", unique = true, nullable = false, length = 10)
    private Integer id;

    /** 公告标题 */
    @Column(name = "TITLE", nullable = true, length = 255)
    private String title;

    /** 公告内容 */
    @Column(name = "CONTENT", nullable = true, length = 65535)
    private String content;

    /** 发布者id */
    @Column(name = "PUBLISHERID", nullable = true, length = 10)
    private Integer publisherid;

    /** 公告创建日期 */
    @Column(name = "CREATEDATE", nullable = true)
    private Date createdate;

    /**
     * 获取编号
     * 
     * @return 编号
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置编号
     * 
     * @param id
     *          编号
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取公告标题
     * 
     * @return 公告标题
     */
    public String getTitle() {
        return this.title;
    }

    /**
     * 设置公告标题
     * 
     * @param title
     *          公告标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取公告内容
     * 
     * @return 公告内容
     */
    public String getContent() {
        return this.content;
    }

    /**
     * 设置公告内容
     * 
     * @param content
     *          公告内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取发布者id
     * 
     * @return 发布者id
     */
    public Integer getPublisherid() {
        return this.publisherid;
    }

    /**
     * 设置发布者id
     * 
     * @param publisherid
     *          发布者id
     */
    public void setPublisherid(Integer publisherid) {
        this.publisherid = publisherid;
    }

    /**
     * 获取公告创建日期
     * 
     * @return 公告创建日期
     */
    public Date getCreatedate() {
        return this.createdate;
    }

    /**
     * 设置公告创建日期
     * 
     * @param createdate
     *          公告创建日期
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }
}